package com.easyidea.its.domain.service.surveillance.impl;

import java.util.Collection;

import com.easyidea.its.domain.model.surveillance.Surveillance;
import com.easyidea.its.domain.repository.surveillance.SurveillanceRepository;
import com.easyidea.its.domain.service.base.impl.BaseBeanServiceImpl;
import com.easyidea.its.domain.service.surveillance.SurveillanceService;
import com.easyidea.its.web.action.surveillance.dto.SurveillanceDto;

public class SurveillanceServiceImpl extends BaseBeanServiceImpl<Surveillance, SurveillanceRepository> implements SurveillanceService {

	@Override
	public SurveillanceRepository getBaseRepository() {
		return surveillanceRepository;
	}

	public int getSurveillanceCountByDto(SurveillanceDto searchDto) {

		return surveillanceRepository.getSurveillanceCountByDto(searchDto);
	}

	public Collection<Surveillance> getSurveillanceByDto(SurveillanceDto searchDto, int start, int pageSize) {

		return surveillanceRepository.getSurveillanceByDto(searchDto, start, pageSize);
	}

	private SurveillanceRepository surveillanceRepository;

	public SurveillanceRepository getSurveillanceRepository() {
		return surveillanceRepository;
	}

	public void setSurveillanceRepository(SurveillanceRepository surveillanceRepository) {
		this.surveillanceRepository = surveillanceRepository;
	}

}
